package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.pojo.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dto.WmNewsTransferDto;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.List;

public interface ArticleService extends IService<ApArticle> {
    List<ApArticle> load(ArticleHomeDto dto);

    List<ApArticle> loadmore(ArticleHomeDto dto);

    List<ApArticle> loadnew(ArticleHomeDto dto);

    ResponseResult<Long> saveArticle(WmNewsTransferDto dto) throws IOException, TemplateException;

    ApArticle findById(Long id);
}
